package com.example.heimaplayer.util

import android.os.Looper
import android.os.Handler

object ThreadUtil {
    val handler = Handler(Looper.getMainLooper());

//    运行在主线程中
    fun runOnMainThread(runnable: Runnable){
        handler.post(runnable)
    }

}